<template>
  <div class="test-result">
    <img class="test-result__logo" src="@/assets/images/kscj.png" />
    <div class="test-result__score">你的分数是<span>85</span>分</div>
    <div class="test-result__tip">挑战尚未成功，同学仍需努力</div>

    <div class="test-result__date">
      <div class="test-result__item">
        <div class="test-result__min"><span>121.2</span>分钟</div>
        <div class="test-result__des">用时</div>
      </div>
      <div class="test-result__item">
        <div class="test-result__min"><span>121.2</span>分钟</div>
        <div class="test-result__des">最佳成绩</div>
      </div>
    </div>

    <div class="test-result__footer">
      <van-button color="linear-gradient(270deg, #1CA893 0%, #1BCD74 100%)" style="margin-bottom: 16px;" round type="success" size="large"
        >在考一次（无限次）</van-button
      >
      <van-button color="#B9BDBD " round type="success" size="large"
        >结束考试，提交最佳成绩</van-button
      >
    </div>
  </div>
</template>
<script name="TestResult" setup></script>
<style lang="scss" scoped>
.test-result {
  height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 26px;
  padding-top: 104px;
  &__logo {
    width: 120px;
    height: 120px;
  }
  &__score {
    font-size: 18px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    color: #171a1d;
    line-height: 25px;
    span {
      color: rgba(255, 169, 64, 1);
    }
  }
  &__tip {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    line-height: 20px;
    margin-top: 12px;
  }
  &__date {
    background: #f2f6ff;
    border-radius: 12px;
    width: 100%;
    margin-top: 16px;
    display: flex;
    padding: 16px 0;
  }
  &__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  &__min {
    font-size: 16px;
    font-family: PingFangSC, PingFang SC;
    color: #272b2d;
    line-height: 24px;
    span {
      font-weight: 500;
    }
  }
  &__des {
    margin-top: 6px;
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    color: #4f4f4f;
    line-height: 17px;
  }
  &__footer {
    width: 100%;
    margin-top: auto;
    padding-bottom: 60px;
  }
}
</style>